<%@ page import="com.deyuanyun.pic.controller.dto.UserSessionVO" %>
<%@ page import="com.deyuanyun.pic.common.cache.TempStoreDataSupport" %>
<%@ page import="com.deyuanyun.pic.cache.SessionCacheSupport2" %>
<%@ page import="com.deyuanyun.pic.domain.prvlg.Menu" %>
<%@ page import="java.util.List" %>
<%@ page import="org.apache.commons.lang.StringUtils" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<%--<script src="${resourcePath}/js/comm/jquery.js" type="text/javascript"></script>--%>


<%
    UserSessionVO sessionVO= SessionCacheSupport2.getSessionVO();
    String menuString=sessionVO.getMenuString();

    String rootPath = request.getContextPath();
    String _token = (String) request.getSession().getAttribute("_token")==null?"":(String) request.getSession().getAttribute("_token");
%>
    <script type="text/javascript">
        var _menuString="<%=menuString%>";
    var _token="<%=_token%>";
    var p_path  = '<%=rootPath%>';//当前项目的前缀
    var _resourcePath='${resourcePath}';//静态资源路径
    var menuMark_='${menuMark}';
    var _nowDateTime="<fmt:formatDate value="${nowDateTime}" pattern="yyyy-MM-dd HH:mm:ss"/>";
    </script>
<!--[if lt IE 9]><script src="${resourcePath}/js/comm/css3-mediaqueries.js"></script><![endif]-->
<script src="<%=rootPath%>/js/comm/jquery-1.9.0.min.js" type="text/javascript"></script>
<script src="<%=rootPath%>/js/comm/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
<script src="<%=rootPath%>/js/comm/jquery.blockUI.min.js" type="text/javascript"></script>
<script src="<%=rootPath%>/js/comm/validate/jquery.validationEngine-zh_CN.js" type="text/javascript"></script>
<script src="<%=rootPath%>/js/comm/validate/jquery.validationEngine.min.js" type="text/javascript"></script>
<script src="<%=rootPath%>/js/comm/myutil.js" type="text/javascript"></script>
<script src="<%=rootPath%>/js/comm/commonBase.js" type="text/javascript"></script>

<script type="text/javascript" src=<c:url value ="/js/lhgdialog/lhgdialog.min.js?skin=iblack" /> ></script>

<script type="text/javascript" src="<%=rootPath%>/js/table/jquery.table2.js"> </script>
<script type="text/javascript" src="<%=rootPath%>/js/table/jquery.cookie.js" ></script>
<script src=<c:url value ="/js/table/stick/jquery.ba-throttle-debounce.min.js"/>> </script>
<script src=<c:url value ="/js/table/stick/jquery.stickyheader.js"/>> </script>


<script src="${resourcePath}/tags/bootstrap/bootstrap.min.js"></script>
<script src="${resourcePath}/tags/laydate/laydate.js"></script>

<link rel="stylesheet" type="text/css" href="<%=rootPath%>/js/table/table.css" />
<link rel="stylesheet" type="text/css" href="<c:url value ="/js/table/stick/component.css" />">
<link rel="stylesheet" type="text/css" href="<c:url value ="/js/comm/validate/validationEngine.jquery.css" />">
<link rel="stylesheet" type="text/css" href="${resourcePath}/tags/bootstrap/bootstrap.css">
<link rel="stylesheet" type="text/css" href="${resourcePath}/css/comm/base_v3.0.css">
<link rel="stylesheet" type="text/css" href="${resourcePath}/css/comm/paging.css">
<link rel="stylesheet" type="text/css" href="${resourcePath}/css/comm/Package.css">
<script type="text/javascript">
    $(document).ready(function(){
        var resourcsJS=[_resourcePath+"/js/comm/base_v3.0.js",
        _resourcePath+"/js/comm/build.js"
        ];
        parallelLoadScripts(resourcsJS,function(){});


    });
    window.onload=function(){
        reDirectUrl();
        $("*[menuCode]").hide();
        var menuStringArr=_menuString.split(",");
        for (var i in menuStringArr){
            $("*[menuCode="+menuStringArr[i]+"]").show();
        }
    }

    //存储当前页面的url地址
    var _nowPage_url_CacheName="_nowPage_url_CacheName";
    var _nowPage_tab_CacheName="_nowPage_tab_CacheName";
    var _nowUrlPath = window.location.pathname;
    //alert(_nowUrlPath)

	//add by tkc laydatetimepicker default background-color:molv
	laydate.skin('huanglv');
</script>